<template>
<div>
  <h1 @click="index++">{{index}}</h1>
</div>
</template>

<script>
export default {
name: "Demo02-1",
  data(){
    return{
      index:0
    }
  }
}
</script>

<style scoped>

</style>